PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-06-08 10:20:54.023610+00:00 (UTC)
In US/Central Time, this is 2024-06-08 05:20:54.023610-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/c634a1e94c22627aefb0d84c4ce8931cb5493eca9cdbdf5ae7a2004ec8c3edee.png
We are just generating a random time serie here.
../../_images/4fb8e0e262dc91bd4edfbcf01635d59fb4fbe6cf7bef1517709fd79351947a44.png
../../_images/2d7e5201d6069de064eff421ade0985fc29fb23597d20b2d4d1e6c69090149e9.png